package net.oschina.kjtang.qywx.config.service.impl;

import net.oschina.kjtang.qywx.common.exception.RCodeException;
import net.oschina.kjtang.qywx.common.service.impl.BaseServiceImpl;
import net.oschina.kjtang.qywx.config.entity.SystemConfig;
import net.oschina.kjtang.qywx.config.dao.SystemConfigDao;
import net.oschina.kjtang.qywx.config.service.SystemConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by kjtang on 2017/12/1.
 */
@Service
public class SystemConfigServiceImpl extends BaseServiceImpl<SystemConfig> implements SystemConfigService {

    @Autowired
    private SystemConfigDao systemConfigDao;

    @Override
    public void add(SystemConfig entity) throws RCodeException {
        systemConfigDao.insert(entity);
    }

    @Override
    public void modify(SystemConfig entity) throws RCodeException {
        super.modify(entity);
    }

    @Override
    public void delete(SystemConfig entity) throws RCodeException {
        super.delete(entity);
    }

    @Override
    public SystemConfig get(SystemConfig entity) throws RCodeException {
        return super.get(entity);
    }
}
